from typing import Optional
from typing import List

from pydantic import BaseModel, Field


class CircleTaskBean(BaseModel):
    start_time: Optional[str] = Field(None,
                                      description="开始时间，可为空，空则使用过去{time_before_now_m}分钟作为开始时间，start_time不为空则time_before_now_m不可用")
    time_before_now_m: Optional[int] = Field(None,)
    time_span_s: Optional[int | float] = Field(None,)
    sleep_s: Optional[int] = Field(None,)
